//
//  SXTopicMainLeftTableViewCell.m
//  ShiXun
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXTopicMainLeftTableViewCell.h"

@implementation SXTopicMainLeftTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
                
        _lisetLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, kScreenWidth / 5, 30)];
        _lisetLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_lisetLabel];
        
    }
    return self;
}

- (UILabel *)lisetLabel
{
    if (self.selected) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        _lisetLabel.textColor = [UIColor redColor];
    }else{
        self.contentView.backgroundColor = [UIColor colorWithRed:0.8608 green:0.8608 blue:0.8608 alpha:1.0];
        _lisetLabel.textColor = [UIColor blackColor];
    }
    return _lisetLabel;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
